.class public final Lkairo/android/i/l;
.super Ljava/lang/Object;


# static fields
.field private static a:[B

.field private static b:[B

.field private static c:[B

.field private static d:[B


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/16 v1, 0x8

    new-array v0, v1, [B

    sput-object v0, Lkairo/android/i/l;->a:[B

    const/4 v0, 0x2

    new-array v0, v0, [B

    sput-object v0, Lkairo/android/i/l;->b:[B

    const/4 v0, 0x4

    new-array v0, v0, [B

    sput-object v0, Lkairo/android/i/l;->c:[B

    new-array v0, v1, [B

    sput-object v0, Lkairo/android/i/l;->d:[B

    return-void
.end method

.method public static a(Ljava/io/OutputStream;B)V
    .locals 0

    invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;F)V
    .locals 1

    invoke-static {p1}, Ljava/lang/Float;->floatToIntBits(F)I

    move-result v0

    invoke-static {p0, v0}, Lkairo/android/i/l;->a(Ljava/io/OutputStream;I)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;I)V
    .locals 3

    sget-object v0, Lkairo/android/i/l;->c:[B

    const/4 v1, 0x0

    shr-int/lit8 v2, p1, 0x18

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    const/4 v1, 0x1

    shr-int/lit8 v2, p1, 0x10

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    const/4 v1, 0x2

    shr-int/lit8 v2, p1, 0x8

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    const/4 v1, 0x3

    shr-int/lit8 v2, p1, 0x0

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;J)V
    .locals 1

    sget-object v0, Lkairo/android/i/l;->d:[B

    invoke-static {p1, p2, v0}, Lkairo/android/i/c;->a(J[B)[B

    move-result-object v0

    invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;Ljava/lang/String;)V
    .locals 2

    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Lkairo/android/i/l;->a(Ljava/io/OutputStream;[BZ)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;S)V
    .locals 3

    sget-object v0, Lkairo/android/i/l;->b:[B

    const/4 v1, 0x0

    shr-int/lit8 v2, p1, 0x8

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    const/4 v1, 0x1

    shr-int/lit8 v2, p1, 0x0

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;Z)V
    .locals 1

    if-eqz p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    int-to-byte v0, v0

    invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write(I)V

    return-void

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static a(Ljava/io/OutputStream;[B)V
    .locals 1

    const/4 v0, 0x0

    invoke-static {p0, p1, v0}, Lkairo/android/i/l;->a(Ljava/io/OutputStream;[BZ)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;[BZ)V
    .locals 1

    if-eqz p2, :cond_0

    array-length v0, p1

    invoke-static {p0, v0}, Lkairo/android/i/l;->a(Ljava/io/OutputStream;I)V

    :cond_0
    array-length v0, p1

    if-lez v0, :cond_1

    invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write([B)V

    :cond_1
    return-void
.end method

.method public static a(Ljava/io/InputStream;)[B
    .locals 1

    invoke-static {p0}, Lkairo/android/i/l;->e(Ljava/io/InputStream;)I

    move-result v0

    invoke-static {p0, v0}, Lkairo/android/i/l;->a(Ljava/io/InputStream;I)[B

    move-result-object v0

    return-object v0
.end method

.method public static a(Ljava/io/InputStream;I)[B
    .locals 5

    const/4 v1, 0x0

    new-instance v2, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V

    new-array v3, p1, [B

    move v0, v1

    :cond_0
    :goto_0
    if-ge v0, p1, :cond_1

    sub-int v4, p1, v0

    invoke-virtual {p0, v3, v1, v4}, Ljava/io/InputStream;->read([BII)I

    move-result v4

    if-ltz v4, :cond_1

    add-int/2addr v0, v4

    if-lez v4, :cond_0

    invoke-virtual {v2, v3, v1, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0

    :cond_1
    if-ge v0, p1, :cond_2

    new-instance v1, Ljava/io/EOFException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "request["

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "] read["

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "]"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_2
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0
.end method

.method private static a(Ljava/io/InputStream;[BI)[B
    .locals 4

    const/4 v1, 0x0

    move v0, v1

    :goto_0
    if-ge v0, p2, :cond_0

    sub-int v2, p2, v0

    invoke-virtual {p0, p1, v1, v2}, Ljava/io/InputStream;->read([BII)I

    move-result v2

    if-ltz v2, :cond_0

    add-int/2addr v0, v2

    goto :goto_0

    :cond_0
    if-ge v0, p2, :cond_1

    new-instance v1, Ljava/io/EOFException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "request["

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "] read["

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "]"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_1
    return-object p1
.end method

.method public static b(Ljava/io/InputStream;)[B
    .locals 4

    const/4 v3, 0x0

    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    const/16 v1, 0x400

    new-array v1, v1, [B

    :cond_0
    :goto_0
    array-length v2, v1

    invoke-virtual {p0, v1, v3, v2}, Ljava/io/InputStream;->read([BII)I

    move-result v2

    if-ltz v2, :cond_1

    if-lez v2, :cond_0

    invoke-virtual {v0, v1, v3, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0

    :cond_1
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0
.end method

.method public static c(Ljava/io/InputStream;)B
    .locals 2

    sget-object v0, Lkairo/android/i/l;->a:[B

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Lkairo/android/i/l;->a(Ljava/io/InputStream;[BI)[B

    move-result-object v0

    const/4 v1, 0x0

    aget-byte v0, v0, v1

    return v0
.end method

.method public static d(Ljava/io/InputStream;)S
    .locals 3

    sget-object v0, Lkairo/android/i/l;->a:[B

    const/4 v1, 0x2

    invoke-static {p0, v0, v1}, Lkairo/android/i/l;->a(Ljava/io/InputStream;[BI)[B

    move-result-object v0

    const/4 v1, 0x0

    aget-byte v1, v0, v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x8

    const/4 v2, 0x1

    aget-byte v0, v0, v2

    and-int/lit16 v0, v0, 0xff

    or-int/2addr v0, v1

    int-to-short v0, v0

    return v0
.end method

.method public static e(Ljava/io/InputStream;)I
    .locals 3

    sget-object v0, Lkairo/android/i/l;->a:[B

    const/4 v1, 0x4

    invoke-static {p0, v0, v1}, Lkairo/android/i/l;->a(Ljava/io/InputStream;[BI)[B

    move-result-object v0

    const/4 v1, 0x0

    aget-byte v1, v0, v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x18

    const/4 v2, 0x1

    aget-byte v2, v0, v2

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v2, v2, 0x10

    or-int/2addr v1, v2

    const/4 v2, 0x2

    aget-byte v2, v0, v2

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v2, v2, 0x8

    or-int/2addr v1, v2

    const/4 v2, 0x3

    aget-byte v0, v0, v2

    and-int/lit16 v0, v0, 0xff

    or-int/2addr v0, v1

    return v0
.end method

.method public static f(Ljava/io/InputStream;)J
    .locals 2

    sget-object v0, Lkairo/android/i/l;->a:[B

    const/16 v1, 0x8

    invoke-static {p0, v0, v1}, Lkairo/android/i/l;->a(Ljava/io/InputStream;[BI)[B

    move-result-object v0

    invoke-static {v0}, Lkairo/android/i/c;->a([B)J

    move-result-wide v0

    return-wide v0
.end method

.method public static g(Ljava/io/InputStream;)Z
    .locals 3

    const/4 v1, 0x0

    const/4 v0, 0x1

    sget-object v2, Lkairo/android/i/l;->a:[B

    invoke-static {p0, v2, v0}, Lkairo/android/i/l;->a(Ljava/io/InputStream;[BI)[B

    move-result-object v2

    aget-byte v2, v2, v1

    if-ne v2, v0, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method public static h(Ljava/io/InputStream;)F
    .locals 1

    invoke-static {p0}, Lkairo/android/i/l;->e(Ljava/io/InputStream;)I

    move-result v0

    invoke-static {v0}, Ljava/lang/Float;->intBitsToFloat(I)F

    move-result v0

    return v0
.end method

.method public static i(Ljava/io/InputStream;)Ljava/lang/String;
    .locals 1

    invoke-static {p0}, Lkairo/android/i/l;->a(Ljava/io/InputStream;)[B

    move-result-object v0

    invoke-static {v0}, Lkairo/android/i/m;->a([B)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
